<?php

header("Content-Type: application/json");
include('../../include/functions.inc.php');
$query = "SELECT ID,NOMBRE,FORMAT(MONTO,2) MT, FORMAT(MORA,2) MR, IF(CHEQUE_RECHAZADO=0,'No','Si') CHEQUE_RECHAZADO FROM cllg_cargo_manual ORDER BY ID";
$string = $db->query_toJson_sql($query, array("ID" => "ID", "NOMBRE" => "NOMBRE", "MONTO" => "MT", "MORA" => "MR", "CHEQUE_RECHAZADO" => "CHEQUE_RECHAZADO"));
//$string=$db->query_toJson("cllg_cargo_manual",NULL,
//                array("ID"=>"ID","NOMBRE"=>"NOMBRE","MONTO"=>"MONTO","MORA"=>"MORA"));
echo $string;
?>
